package com.youlu.campus.web.data.english;

import com.youlu.campus.service.english.CompetitionConfigService;
import com.youlu.campus.service.english.UserCompetitionQaService;
import com.yuelin.infrastructure.quantum.common.QResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CompetitionConfigController {

    @Autowired
    private CompetitionConfigService competitionConfigService;

    @Autowired
    private UserCompetitionQaService userCompetitionQaService;


    @GetMapping("/public/competition/home")
    public QResult home(){
       return QResult.success(competitionConfigService.detail());
    }

    @GetMapping("/public/competition/university")
    public QResult doUniversity(){
        userCompetitionQaService.doUniversity();
        return QResult.success(null);
    }



}
